#ifndef MODEL_H
#define MODEL_H

#include <list>
#include "client.h"

using namespace std;

namespace model {
	class model_class {
	public:
		model_class() {}
		model_class(const list<model::client> &l):_clients(l) {}
		~model_class() {}

		const list<model::client>& get_clients() const 
		{
			return _clients;
		}
		list<model::client>& get_clients() { return _clients; }
		void set_clients(const list<model::client> &c) {_clients = c;}

		model::title* find_title(const string &file);
		model::title* find_title(const string &file, model::client *c);
		model::client* find_client(const string &name);
	private:
		model::title* find_title(const string &, model::album *);
		model::title* find_title(const string &, model::interpreter *);
		list<model::client> _clients;
	};
}

#endif
